package com.purchase.mapper;

import org.apache.ibatis.annotations.Param;

import java.util.Map;

@MyBatisRepository
public interface MemberPayMapper {

    /**
     * 保存流水
     *
     * @param paramMap
     * @return
     */
    int savePayOrder(Map<String, Object> paramMap);

    /**
     * 修改流水
     *
     * @param payOrderMap
     * @return
     */
    int modifyPayOrder(Map<String, String> payOrderMap);

    /**
     * 根据id获取流水
     *
     * @param payOrderMap
     * @return
     */
    Map<String, Object> getPayOrderById(Map<String, Object> payOrderMap);

    /**
     * 创建会员关联关系
     * @param paramMap
     * @return
     */
    int saveMember(Map<String, Object> paramMap);

    /**
     * 修改会员关联关系
     * @param paramMap
     * @return
     */
    int editMember(Map<String, Object> paramMap);

    /**
     * 根据 wxUid 获取流水
     *
     * @param wxUid
     * @return
     */
    Map<String, Object> getRefundablePayOrderByWxUid(@Param("wxUid") String wxUid);

    /**
     * 根据 orderId 获取流水
     * @param orderId
     * @return
     */
    Map<String, Object> getPayOrderByOrderId(@Param("orderId") String orderId);

}
